package com.easy.dn.utils.encryption;

public final class Constants {
    private Constants() {
    }
    /** 编码 */
    public static final String CHAR_ENCODING = "UTF-8";

    /**  */
    public static final String AES_ALGORITHM = "AES/ECB/PKCS5Padding";

    /**  */
    public static final String RSA_ALGORITHM = "RSA/ECB/PKCS1Padding";

    /**  */
    public static final String SIGN_SHA256RSA_ALGORITHM = "SHA256WithRSA";


    /**
     * 加密穿法枚举
     * description
     * author zhanqiulin
     * create 2017/8/6
     */
    public enum Algorithm {
        /**  */
        MD5("MD5"), SHA1("SHA-1"), SHA256("SHA-256"), RSA("RSA");

        /** 值 */
        private String algorithm;

        Algorithm(String algorithm) {
            this.algorithm = algorithm;
        }

        /**
         * description 加密算法
         * param
         * return
         * author zhanqiulin
         * create 2017/8/6
         */
        public String algorithm() {
            return algorithm;
        }
    }

}

